Skip to content

Conversation

@3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented Mar 29, 2025

Caution

コンフリクトの解消のため、このPull Requestは必ずCreate a merge commitでマージしてください。

変更点

  • upstreamのv0.13.1をマージした
  • 検索インデックスを更新した

@3w36zj6 3w36zj6 requested review from Copilot and kimushun1101 March 29, 2025 14:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR merges upstream v0.13.1 changes into the repository, updating the changelog, documentation links, and version numbers while incorporating upstream improvements. Key changes include:

  • Merging upstream updates and conflict resolution with a merge commit.
  • Updating documentation examples and links in multiple markdown files.
  • Bumping crate versions and adjusting internal API usages in code.

Reviewed Changes

Copilot reviewed 38 out of 38 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/reference/export/html.md Updated link interpolation in HTML export method documentation.
docs/guides/page-setup.md Revised page option examples to reflect updated naming conventions.
docs/guides/guide-for-latex-users.md Minor text correction for clarity.
docs/changelog/* Updated changelog entries for v0.13.1 and revised v0.13.0 information and links.
crates/typst-realize/src/lib.rs Enabled setting labels on text elements when present in mathematical content.
crates/typst-library/src/model/table.rs Changed table grid calculations to use non-gutter column count.
crates/typst-library/src/loading/xml.rs Modified XML example code to simplify type-check expressions.
crates/typst-library/src/layout/grid/resolve.rs Refactored column count calculations and added a helper function.
crates/typst-library/src/introspection/introspector.rs Adjusted HTML introspection to use a revised type signature.
crates/typst-library/src/foundations/ops.rs Enhanced deprecation warning function by narrowing when to emit warnings.
crates/typst-library/src/foundations/func.rs Revised equality comparison for native function data.
crates/typst-library/src/foundations/array.rs Minor formatting change in code example for the chunks method.
crates/typst-layout/src/shapes.rs Added initialization for empty state on curve builder start.
crates/typst-html/src/lib.rs Reordered and modified introspector creation and updated HTML element classification.
crates/typst-cli/src/watch.rs Improved file watching logic to avoid unnecessary recompilations on output file changes.
README.md / README.en.md Updated documentation to refer to Typst v0.13.1.
Cargo.toml Updated workspace and dependency versions to v0.13.1.

@kimushun1101
Copy link
Member

@3w36zj6
検索インデックスの更新についてご質問させてください。
コミット typst-jp/typst-jp.github.io@639502b の差分が重要かと思うのですが、差分が大きくて内容の確認が難しいです。

  • https://github.com/typst-jp/typst-jp.github.io/pull/90 のときと同様の対応をするということでしたら、変更した検索項目の1例を教えて頂けますでしょうか?
  • 差分が大きい理由は、インデントや配列の書き方が変わっていることかと推測しました。自動生成やフォーマッターなどを使用しているのでしょうか? https://github.com/typst-jp/typst-jp.github.io/pull/90 のときのコミット typst-jp/typst-jp.github.io@7468bec のときとも、微妙に変化している理由として思い当たることがありますか?差分が小さくなれば、私の方でも変更した検索項目を探しやすくなるかと思います。

@3w36zj6
Copy link
Member Author

3w36zj6 commented Mar 31, 2025

一例を挙げると、v0.12.0v0.13.0の間でHTMLサポートが追加されているので、検索ボックスにhtmlと入力すると結果の変化が確認できると思います。

検索インデックスの更新については、wget -O static/assets/search.json https://typst.app/assets/search.jsonをした後にbunx prettier --write static/assets/search.jsonをしています。
search.jsonは、各ページのメタデータのitems、検索可能な単語リストのwords、各単語が出現するページの逆引きインデックスのhitsで構成されていて、itemswordsの変更が少ない一方で、これらの配列に挿入や削除が行われる影響でhitsの記述箇所のほぼすべてでdiffが発生しています。

Copy link
Member

@kimushun1101 kimushun1101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。htmlで検索が確認できました。

アップデート後の確認方法としては、リリースノートなどの情報から追加されたページを推定して、それを検索にかけるという方法が良さそうですね。

@3w36zj6 3w36zj6 merged commit 5c056b7 into main Apr 1, 2025
3 checks passed
@3w36zj6 3w36zj6 deleted the feature/merge-upstream-v0.13.1 branch April 1, 2025 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.